let cnt = 0;
export function delay(ms=100) {
  wx.showLoading({
    title: '正在努力处理中...',
    mask:true
  });
  cnt++;
  return new Promise((resolve) => {
    setTimeout(function(){
      cnt--;
      if(cnt===0){
        wx.hideLoading();
      }
      resolve();
    }, ms);
  });
}

